package com.dries.security.validate.code.captcha;

import com.dries.common.utils.MyRequestWrapper;
import org.springframework.web.context.request.ServletWebRequest;

import java.io.IOException;

/**
 * @Description: 验证码
 * @Author ZSY
 * @createTime 2020/9/7 10:19
 */
public interface Captcha {

    /**
     * 渲染验证码
     *
     * @return 验证码内容
     */
    SysCaptcha render(ServletWebRequest request) throws Exception;

    void validate(ServletWebRequest request, MyRequestWrapper requestWrapper) throws IOException;

}
